package edu.sctu.zhengsenwen.month201506.day20150617;

import javax.swing.*;

/**
 * 编码规范
 * Created by user15 on 2015/6/17.
 */
public class StandardCode extends JFrame {



    final String string ="Hello";

    private String demoString;


    public StandardCode() {

        this.setDemoString("java");

        System.out.println(combineString(string, getDemoString()));

    }


    public static void main(String[] args) {

        StandardCode standardCode = new StandardCode();
    }

    public void setDemoString(String demoString) {
        this.demoString = demoString;
    }

    public String getDemoString() {
        return demoString;
    }

    public String combineString(String string1,String string2){

        return string1 +"   "+ string2;
    }
}
